
package bm.forms;

/**
 *
 * @author chaosmeleon
 */
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;

public class LoginForm extends ActionForm {

    private String action="add";
    private String login=null;
    private String pass=null;
    private String usertype=null;


    

    public void setAction(String action){
        this.action=action;
    }

    public String getAction(){
       return this.action;
    }

    public void setLogin(String login){
        this.login=login;
    }

    public String getLogin(){
        return this.login;
    }

    public void setPass(String pass){
       this.pass=pass;
    }

    public String getPass(){
       return this.pass;
    }

    public void setUsertype(String usertype){
       this.usertype=usertype;
    }

    public String getUsertype(){
       return this.usertype;
    }

    @Override
    public void reset(ActionMapping mapping,HttpServletRequest request){

       this.login=null;
       this.pass=null;
       this.usertype=null;
       this.action="add";

    }

}
